#include "adc_ext_user.h"

uint32_t const Adc_Dma_BufferSize = (ADC_DMA_CHANNEL_NUM * ADC_DMA_CHANNEL_DEEPTH);

uint8_t const Adc_Dma_ChannelNum = ADC_DMA_CHANNEL_NUM;
uint16_t const Adc_Dma_ChannelDeepth = ADC_DMA_CHANNEL_DEEPTH;

uint16_t  Adc_Dma_Buffer[ADC_DMA_CHANNEL_DEEPTH][ADC_DMA_CHANNEL_NUM];
uint16_t *const Adc_Dma_Buffer_P = Adc_Dma_Buffer;

void ADC_UserConfig1()
{
//    ADC_Config_NotUseDMA(1, 0);
}

void ADC_UserConfig2()
{
//    ADC_Config_SetDMA(1);
//    ADC_Config_UseDMA(1, ADC_DMA_CHANNEL_NUM, ADC_RankChannelConfig1);
}

void ADC_RankChannelConfig1(void)
{
//    ADC_RegularChannelConfig(ADC1, ADC_Channel_0, 1, ADC_SampleTime_3Cycles);       //通道1转换结果保存到ADCConvertedValue[0~10][0]
//    ADC_RegularChannelConfig(ADC1, ADC_Channel_1, 2, ADC_SampleTime_3Cycles);       //通道2转换结果保存到ADCConvertedValue[0~10][1]
//    ADC_RegularChannelConfig(ADC1, ADC_Channel_2, 3, ADC_SampleTime_3Cycles);       //通道3转换结果保存到ADCConvertedValue[0~10][2]
//
//    ADC_RegularChannelConfig(ADC1, ADC_Channel_4, 4, ADC_SampleTime_3Cycles);       //通道4转换结果保存到ADCConvertedValue[0~10][3]
//    ADC_RegularChannelConfig(ADC1, ADC_Channel_5, 5, ADC_SampleTime_3Cycles);       //通道5转换结果保存到ADCConvertedValue[0~10][4]
//    ADC_RegularChannelConfig(ADC1, ADC_Channel_6, 6, ADC_SampleTime_3Cycles);       //通道6转换结果保存到ADCConvertedValue[0~10][5]
//    ADC_RegularChannelConfig(ADC1, ADC_Channel_7, 7, ADC_SampleTime_3Cycles);       //通道7转换结果保存到ADCConvertedValue[0~10][6]
}
